<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.1">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"emoh.xyz","root":"/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta property="og:type" content="website">
<meta property="og:title" content="Just do it!">
<meta property="og:url" content="http://emoh.xyz/page/2/index.html">
<meta property="og:site_name" content="Just do it!">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="Emoh">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="http://emoh.xyz/page/2/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : true,
    isPost : false,
    lang   : 'zh-CN'
  };
</script>

  <title>Just do it!</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">Just do it!</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content index posts-expand">
            
      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://emoh.xyz/2020/06/01/2020-06-01-vimplus%E5%BF%AB%E6%8D%B7%E9%94%AE/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/touxiang.png">
      <meta itemprop="name" content="Emoh">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Just do it!">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          
            <a href="/2020/06/01/2020-06-01-vimplus%E5%BF%AB%E6%8D%B7%E9%94%AE/" class="post-title-link" itemprop="url">vimplus快捷键</a>
        </h2>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>
              

              <time title="创建时间：2020-06-01 11:29:49 / 修改时间：11:32:32" itemprop="dateCreated datePublished" datetime="2020-06-01T11:29:49+08:00">2020-06-01</time>
            </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/vim/" itemprop="url" rel="index"><span itemprop="name">vim</span></a>
                </span>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
          <h2 id="插件相关"><a href="#插件相关" class="headerlink" title="插件相关"></a>插件相关</h2><table>
<thead>
<tr>
<th>快捷键</th>
<th>说明</th>
</tr>
</thead>
<tbody><tr>
<td><code>,</code></td>
<td>Leader Key</td>
</tr>
<tr>
<td><code>&lt;leader&gt;n</code></td>
<td>打开/关闭代码资源管理器</td>
</tr>
<tr>
<td><code>&lt;leader&gt;t</code></td>
<td>打开/关闭函数列表</td>
</tr>
<tr>
<td><code>&lt;leader&gt;a</code></td>
<td>.h .cpp 文件切换</td>
</tr>
<tr>
<td><code>&lt;leader&gt;u</code></td>
<td>转到函数声明</td>
</tr>
<tr>
<td><code>&lt;leader&gt;U</code></td>
<td>转到函数实现</td>
</tr>
<tr>
<td><code>&lt;leader&gt;u</code></td>
<td>转到变量声明</td>
</tr>
<tr>
<td><code>&lt;leader&gt;o</code></td>
<td>打开include文件</td>
</tr>
<tr>
<td><code>&lt;leader&gt;y</code></td>
<td>拷贝函数声明</td>
</tr>
<tr>
<td><code>&lt;leader&gt;p</code></td>
<td>生成函数实现</td>
</tr>
<tr>
<td><code>&lt;leader&gt;w</code></td>
<td>单词跳转</td>
</tr>
<tr>
<td><code>&lt;leader&gt;f</code></td>
<td>搜索~目录下的文件</td>
</tr>
<tr>
<td><code>&lt;leader&gt;F</code></td>
<td>搜索当前目录下的文本</td>
</tr>
<tr>
<td><code>&lt;leader&gt;g</code></td>
<td>显示git仓库提交记录</td>
</tr>
<tr>
<td><code>&lt;leader&gt;G</code></td>
<td>显示当前文件提交记录</td>
</tr>
<tr>
<td><code>&lt;leader&gt;gg</code></td>
<td>显示当前文件在某个commit下的完整内容</td>
</tr>
<tr>
<td><code>&lt;leader&gt;ff</code></td>
<td>语法错误自动修复(FixIt)</td>
</tr>
<tr>
<td><code>&lt;c-p&gt;</code></td>
<td>切换到上一个buffer</td>
</tr>
<tr>
<td><code>&lt;c-n&gt;</code></td>
<td>切换到下一个buffer</td>
</tr>
<tr>
<td><code>&lt;leader&gt;d</code></td>
<td>删除当前buffer</td>
</tr>
<tr>
<td><code>&lt;leader&gt;D</code></td>
<td>删除当前buffer外的所有buffer</td>
</tr>
<tr>
<td><code>vim</code></td>
<td>运行vim编辑器时,默认启动开始页面</td>
</tr>
<tr>
<td><code>&lt;F5&gt;</code></td>
<td>显示语法错误提示窗口</td>
</tr>
<tr>
<td><code>&lt;F9&gt;</code></td>
<td>显示上一主题</td>
</tr>
<tr>
<td><code>&lt;F10&gt;</code></td>
<td>显示下一主题</td>
</tr>
<tr>
<td><code>&lt;leader&gt;l</code></td>
<td>按竖线对齐</td>
</tr>
<tr>
<td><code>&lt;leader&gt;=</code></td>
<td>按等号对齐</td>
</tr>
<tr>
<td><code>Ya</code></td>
<td>复制行文本到字母a</td>
</tr>
<tr>
<td><code>Da</code></td>
<td>剪切行文本到字母a</td>
</tr>
<tr>
<td><code>Ca</code></td>
<td>改写行文本到字母a</td>
</tr>
<tr>
<td><code>rr</code></td>
<td>替换文本</td>
</tr>
<tr>
<td><code>&lt;leader&gt;r</code></td>
<td>全局替换，目前只支持单个文件</td>
</tr>
<tr>
<td><code>rev</code></td>
<td>翻转当前光标下的单词或使用V模式选择的文本</td>
</tr>
<tr>
<td><code>gcc</code></td>
<td>注释代码</td>
</tr>
<tr>
<td><code>gcap</code></td>
<td>注释段落</td>
</tr>
<tr>
<td><code>vif</code></td>
<td>选中函数内容</td>
</tr>
<tr>
<td><code>dif</code></td>
<td>删除函数内容</td>
</tr>
<tr>
<td><code>cif</code></td>
<td>改写函数内容</td>
</tr>
<tr>
<td><code>vaf</code></td>
<td>选中函数内容（包括函数名 花括号）</td>
</tr>
<tr>
<td><code>daf</code></td>
<td>删除函数内容（包括函数名 花括号）</td>
</tr>
<tr>
<td><code>caf</code></td>
<td>改写函数内容（包括函数名 花括号）</td>
</tr>
<tr>
<td><code>fa</code></td>
<td>查找字母a，然后再按f键查找下一个</td>
</tr>
<tr>
<td><code>&lt;leader&gt;e</code></td>
<td>快速编辑~/.vimrc文件</td>
</tr>
<tr>
<td><code>&lt;leader&gt;s</code></td>
<td>重新加载~/.vimrc文件</td>
</tr>
<tr>
<td><code>&lt;leader&gt;vp</code></td>
<td>快速编辑~/.vimrc.custom.plugins文件</td>
</tr>
<tr>
<td><code>&lt;leader&gt;vc</code></td>
<td>快速编辑~/.vimrc.custom.config文件</td>
</tr>
<tr>
<td><code>&lt;leader&gt;h</code></td>
<td>打开vimplus帮助文档</td>
</tr>
<tr>
<td><code>&lt;leader&gt;H</code></td>
<td>打开当前光标所在单词的vim帮助文档</td>
</tr>
<tr>
<td><code>&lt;leader&gt;&lt;leader&gt;t</code></td>
<td>生成try-catch代码块</td>
</tr>
<tr>
<td><code>&lt;leader&gt;&lt;leader&gt;y</code></td>
<td>复制当前选中到系统剪切板</td>
</tr>
<tr>
<td><code>&lt;leader&gt;&lt;leader&gt;i</code></td>
<td>安装插件</td>
</tr>
<tr>
<td><code>&lt;leader&gt;&lt;leader&gt;u</code></td>
<td>更新插件</td>
</tr>
<tr>
<td><code>&lt;leader&gt;&lt;leader&gt;c</code></td>
<td>删除插件</td>
</tr>
</tbody></table>
          <!--noindex-->
            <div class="post-button">
              <a class="btn" href="/2020/06/01/2020-06-01-vimplus%E5%BF%AB%E6%8D%B7%E9%94%AE/#more" rel="contents">
                阅读全文 &raquo;
              </a>
            </div>
          <!--/noindex-->
        
      
    </div>

    
    
    
      <footer class="post-footer">
        <div class="post-eof"></div>
      </footer>
  </article>
  
  
  

      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://emoh.xyz/2020/05/29/2020-05-29-awk%E5%92%8Cash/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/touxiang.png">
      <meta itemprop="name" content="Emoh">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Just do it!">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          
            <a href="/2020/05/29/2020-05-29-awk%E5%92%8Cash/" class="post-title-link" itemprop="url">awk和ash</a>
        </h2>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>
              

              <time title="创建时间：2020-05-29 09:13:17 / 修改时间：09:16:16" itemprop="dateCreated datePublished" datetime="2020-05-29T09:13:17+08:00">2020-05-29</time>
            </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/oracle-%E6%97%A5%E5%B8%B8%E7%AE%A1%E7%90%86/" itemprop="url" rel="index"><span itemprop="name">oracle 日常管理</span></a>
                </span>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
          <h1 id="使用"><a href="#使用" class="headerlink" title="使用"></a>使用</h1><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">@?&#x2F;rdbms&#x2F;admin&#x2F;ashrpt.sql</span><br><span class="line">@?&#x2F;rdbms&#x2F;admin&#x2F;awrrpt.sql</span><br><span class="line">AWR 是通过对比两次快照(snapshot)收集到的统计信息，来生成报表数据，生成的报表包括多个部分，这点与Statspack生成的报告非常类似。不过AWR在生成报告时，可以选择生成TXT或HTML两种格式的报告，相对来说，HTML更利于阅读，而TXT的适用性更广(即使在不能使用浏览器的机器上也能看)。</span><br><span class="line">操作过Statspack的朋友都还记的，生成报告使用$ORACLE_HOME&#x2F;rdbms&#x2F;admin&#x2F;spreport.sql脚本，到了AWR这片，操作步骤基本上相同，不过生成报告的脚本多了很多选择，包括：</span><br><span class="line">awrrpt.sql ：生成指定快照区间的统计报表；</span><br><span class="line">awrrpti.sql ：生成指定数据库实例，并且指定快照区间的统计报表；</span><br><span class="line">awrsqlrpt.sql ：生成指定快照区间，指定SQL语句(实际指定的是该语句的SQLID)的统计报表；</span><br><span class="line">awrsqrpi.sql ：生成指定数据库实例，指定快照区间的指定SQL语句的统计报表；</span><br><span class="line">awrddrpt.sql ：指定两个不同的时间周期，生成这两个周期的统计对比报表；</span><br><span class="line">awrddrpi.sql ：指定数据库实例，并指定两个的不同时间周期，生成这两个周期的统计对比报表；</span><br></pre></td></tr></table></figure>
          <!--noindex-->
            <div class="post-button">
              <a class="btn" href="/2020/05/29/2020-05-29-awk%E5%92%8Cash/#more" rel="contents">
                阅读全文 &raquo;
              </a>
            </div>
          <!--/noindex-->
        
      
    </div>

    
    
    
      <footer class="post-footer">
        <div class="post-eof"></div>
      </footer>
  </article>
  
  
  

      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://emoh.xyz/2020/05/29/2020-05-29-HMC%E5%91%BD%E4%BB%A4%E6%95%B4%E7%90%86/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/touxiang.png">
      <meta itemprop="name" content="Emoh">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Just do it!">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          
            <a href="/2020/05/29/2020-05-29-HMC%E5%91%BD%E4%BB%A4%E6%95%B4%E7%90%86/" class="post-title-link" itemprop="url">HMC命令整理</a>
        </h2>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>
              

              <time title="创建时间：2020-05-29 09:07:58 / 修改时间：09:09:57" itemprop="dateCreated datePublished" datetime="2020-05-29T09:07:58+08:00">2020-05-29</time>
            </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/aix/" itemprop="url" rel="index"><span itemprop="name">aix</span></a>
                </span>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
          <h1 id="hmc命令"><a href="#hmc命令" class="headerlink" title="hmc命令"></a>hmc命令</h1><ul>
<li>asmmenu 打开受管主机asmm网页。<br>示列：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">asmmenu --ip</span><br></pre></td></tr></table></figure>

<ul>
<li>bkconsdata 备份硬件控制台HMC重要数据</li>
</ul>
<p>示列：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">bkconsdata -r ftp -h ftpserver -u ftpuser --passwd ftppassword</span><br><span class="line">bkconsdata -r nfs -h 9.3.145.52 -l /home/hmc/backups</span><br><span class="line">bkconsdata -r dvd</span><br></pre></td></tr></table></figure>

<ul>
<li>bkprofdata 将受管系统的概要文件数据备份到文件中。</li>
</ul>
<p>示例：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">bkprofdata -m mySystem -f /mnt/floppy/myFile</span><br><span class="line">bkprofdata -m 9406-570*341344 -f backup1</span><br></pre></td></tr></table></figure>
          <!--noindex-->
            <div class="post-button">
              <a class="btn" href="/2020/05/29/2020-05-29-HMC%E5%91%BD%E4%BB%A4%E6%95%B4%E7%90%86/#more" rel="contents">
                阅读全文 &raquo;
              </a>
            </div>
          <!--/noindex-->
        
      
    </div>

    
    
    
      <footer class="post-footer">
        <div class="post-eof"></div>
      </footer>
  </article>
  
  
  

      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://emoh.xyz/2020/05/28/2020-05-28-python%E8%B5%84%E6%BA%90%E5%92%8C%E5%89%8D%E6%99%AF/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/touxiang.png">
      <meta itemprop="name" content="Emoh">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Just do it!">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          
            <a href="/2020/05/28/2020-05-28-python%E8%B5%84%E6%BA%90%E5%92%8C%E5%89%8D%E6%99%AF/" class="post-title-link" itemprop="url">python资源和前景</a>
        </h2>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>
              

              <time title="创建时间：2020-05-28 17:45:29 / 修改时间：17:48:30" itemprop="dateCreated datePublished" datetime="2020-05-28T17:45:29+08:00">2020-05-28</time>
            </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/python/" itemprop="url" rel="index"><span itemprop="name">python</span></a>
                </span>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
          <h1 id="Python参考书籍"><a href="#Python参考书籍" class="headerlink" title="Python参考书籍"></a>Python参考书籍</h1><h2 id="入门读物"><a href="#入门读物" class="headerlink" title="入门读物"></a>入门读物</h2><ol>
<li>《Python基础教程》（Beginning Python From Novice to Professional）</li>
<li>《Python学习手册》（Learning Python）</li>
<li>《Python编程》（Programming Python）</li>
<li>《Python Cookbook》</li>
<li>《Python程序设计》（Python Programming: An Introduction to Computer Science）</li>
<li>《Modern Python Cookbook》</li>
</ol>
<h2 id="进阶读物"><a href="#进阶读物" class="headerlink" title="进阶读物"></a>进阶读物</h2><ol>
<li>《Python核心编程》（Core Python Applications Programming）</li>
<li>《流畅的Python》（Fluent Python）</li>
<li>《Effective Python：编写高质量Python代码的59个有效方法》（Effective Python 59 Specific Ways to Write Better Python）</li>
<li>《Python设计模式》（Learning Python Design Patterns）</li>
<li>《Python高级编程》（Expert Python Programming）</li>
<li>《Python性能分析与优化》（Mastering Python High Performance）</li>
</ol>
          <!--noindex-->
            <div class="post-button">
              <a class="btn" href="/2020/05/28/2020-05-28-python%E8%B5%84%E6%BA%90%E5%92%8C%E5%89%8D%E6%99%AF/#more" rel="contents">
                阅读全文 &raquo;
              </a>
            </div>
          <!--/noindex-->
        
      
    </div>

    
    
    
      <footer class="post-footer">
        <div class="post-eof"></div>
      </footer>
  </article>
  
  
  

      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://emoh.xyz/2020/05/28/2020-05-28-python%E5%AE%89%E8%A3%85/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/touxiang.png">
      <meta itemprop="name" content="Emoh">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Just do it!">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          
            <a href="/2020/05/28/2020-05-28-python%E5%AE%89%E8%A3%85/" class="post-title-link" itemprop="url">python安装</a>
        </h2>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>
              

              <time title="创建时间：2020-05-28 17:40:52 / 修改时间：17:51:02" itemprop="dateCreated datePublished" datetime="2020-05-28T17:40:52+08:00">2020-05-28</time>
            </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/python/" itemprop="url" rel="index"><span itemprop="name">python</span></a>
                </span>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
          <ul>
<li>安装依赖库</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yum -y install wget gcc zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel</span><br></pre></td></tr></table></figure>

<ul>
<li>下载Python源代码</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz</span><br><span class="line">tar -zxvf Python-3.7.3.tar</span><br></pre></td></tr></table></figure>

<ul>
<li>编译安装</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> Python-3.7.3</span><br><span class="line">./configure --prefix=/usr/<span class="built_in">local</span>/python37 --<span class="built_in">enable</span>-optimizations</span><br><span class="line">make &amp;&amp; make install</span><br></pre></td></tr></table></figure>
          <!--noindex-->
            <div class="post-button">
              <a class="btn" href="/2020/05/28/2020-05-28-python%E5%AE%89%E8%A3%85/#more" rel="contents">
                阅读全文 &raquo;
              </a>
            </div>
          <!--/noindex-->
        
      
    </div>

    
    
    
      <footer class="post-footer">
        <div class="post-eof"></div>
      </footer>
  </article>
  
  
  

      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://emoh.xyz/2020/05/28/2020-05-28-oracle%E9%97%AA%E5%9B%9E%E7%89%B9%E6%80%A7/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/touxiang.png">
      <meta itemprop="name" content="Emoh">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Just do it!">
    </span>
      <header class="post-header">
        <h2 class="post-title" itemprop="name headline">
          
            <a href="/2020/05/28/2020-05-28-oracle%E9%97%AA%E5%9B%9E%E7%89%B9%E6%80%A7/" class="post-title-link" itemprop="url">oracle闪回特性</a>
        </h2>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>
              

              <time title="创建时间：2020-05-28 17:24:18 / 修改时间：17:28:49" itemprop="dateCreated datePublished" datetime="2020-05-28T17:24:18+08:00">2020-05-28</time>
            </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/oracle-%E5%A4%87%E4%BB%BD%E6%81%A2%E5%A4%8D/" itemprop="url" rel="index"><span itemprop="name">oracle 备份恢复</span></a>
                </span>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
          <figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">/* </span></span><br><span class="line"><span class="comment">11g的flashbackup 分好几种，分别用途不一样。 </span></span><br><span class="line"><span class="comment">A.flashback database 闪回数据库，简单理解就是把数据库闪回到某个以前的时间点， </span></span><br><span class="line"><span class="comment">能恢复到的最早的SCN， 取决与Flashback Log中记录的最早SCN </span></span><br><span class="line"><span class="comment">B.flashback drop 回收数据库表，用于表误drop后恢复。类似Windows的回收站。 </span></span><br><span class="line"><span class="comment">C.flashback query 闪回表记录，用于数据表记录的恢复 </span></span><br><span class="line"><span class="comment">D.falshabck Table 闪回数据库表， </span></span><br><span class="line"><span class="comment">后两个是重点，下面说明。 </span></span><br><span class="line"><span class="comment">*/</span></span><br></pre></td></tr></table></figure>

<figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">-- A.flashback database相关</span></span><br><span class="line"> </span><br><span class="line"><span class="comment">/* </span></span><br><span class="line"><span class="comment">1.默认情况数据库的flashback database是关闭，可以在mount exclusive状态下打开。 </span></span><br><span class="line"><span class="comment">在设置了闪回恢复区后，可以启动闪回数据库功能。 </span></span><br><span class="line"><span class="comment">*/</span> </span><br><span class="line"><span class="comment">--1.检查是否启动了flash recovery area </span></span><br><span class="line"><span class="keyword">show</span> parameter db_recovery_file </span><br><span class="line"><span class="comment">--2.检查是否启用了归档 </span></span><br><span class="line"><span class="keyword">archive</span> <span class="keyword">log</span> <span class="keyword">list</span>; </span><br><span class="line"><span class="comment">--3.flashback database 默认是关闭的，查看方法 </span></span><br><span class="line"><span class="keyword">select</span> flashback_on <span class="keyword">from</span> v$<span class="keyword">database</span>; </span><br><span class="line"><span class="comment">--4.查询当前的scn </span></span><br><span class="line"><span class="keyword">SELECT</span> CURRENT_SCN <span class="keyword">FROM</span> V$<span class="keyword">DATABASE</span>; </span><br><span class="line"><span class="comment">--5.查询当前的时间 </span></span><br><span class="line"><span class="keyword">select</span> to_char(<span class="keyword">sysdate</span>,<span class="string">'yy-mm-dd hh24:mi:ss'</span>) <span class="built_in">time</span> <span class="keyword">from</span> dual; </span><br><span class="line"><span class="comment">--6.查看SCN 和 timestamp 之间的对应关系： </span></span><br><span class="line"><span class="keyword">select</span> <span class="keyword">scn</span>,to_char(time_dp,<span class="string">'yyyy-mm-dd hh24:mi:ss'</span>)<span class="keyword">from</span> sys.smon_scn_time; </span><br><span class="line"><span class="comment">--7.恢复到时间点，或者恢复到SCN </span></span><br><span class="line">flashback database to timestamp to_timestamp('09-10-14 14:37:05′,'yy-mm-dd hh24:mi:ss'); </span><br><span class="line">flashback database to scn 947921;</span><br></pre></td></tr></table></figure>
          <!--noindex-->
            <div class="post-button">
              <a class="btn" href="/2020/05/28/2020-05-28-oracle%E9%97%AA%E5%9B%9E%E7%89%B9%E6%80%A7/#more" rel="contents">
                阅读全文 &raquo;
              </a>
            </div>
          <!--/noindex-->
        
      
    </div>

    
    
    
      <footer class="post-footer">
        <div class="post-eof"></div>
      </footer>
  </article>
  
  
  


  
  <nav class="pagination">
    <a class="extend prev" rel="prev" href="/"><i class="fa fa-angle-left" aria-label="上一页"></i></a><a class="page-number" href="/">1</a><span class="page-number current">2</span><a class="page-number" href="/page/3/">3</a><span class="space">&hellip;</span><a class="page-number" href="/page/5/">5</a><a class="extend next" rel="next" href="/page/3/"><i class="fa fa-angle-right" aria-label="下一页"></i></a>
  </nav>



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="Emoh"
      src="/images/touxiang.png">
  <p class="site-author-name" itemprop="name">Emoh</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">29</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">16</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">23</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Emoh</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Gemini</a> 强力驱动
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>




  















  

  

</body>
</html>
